// ========================================================================
// Copyright (c) 2022 ChangYou, All rights reserved.
// http://www.changyou.com/
// 
// Filename:    FoliageWind.cs
// Time:        2022-08-29 16:52:43
// Author:      xiangjinbao
// Email:       xiangjinbao@cyou-inc.com
// Version:     v2022.0.1
// Description: FoliageWind
// ========================================================================

using System;
using UnityEngine;

namespace ProjectTW.Foliage
{
    [Serializable]
    public class FoliageWind
    {
        [SerializeField]
        private float m_WindBending = 1;
        [SerializeField]
        private float m_WindSpeed = 1;

        public float WindBending
        {
            get
            {
                return m_WindBending;
            }
            set
            {
                if (m_WindBending != value)
                {
                    m_WindBending = value;
                    FoliageDB.Instance.UpdateShaderWindSettings();
                }
            }
        }

        public float WindSpeed
        {
            get
            {
                return m_WindSpeed;
            }
            set
            {
                if (m_WindSpeed != value)
                {
                    m_WindSpeed = value;
                    FoliageDB.Instance.UpdateShaderWindSettings();
                }
            }
        }
    }
}
